package com.imagepreview.plugin;

import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;

import com.test.ad.AdPlugin;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;

/**
 * @ProjectName: ImagePreviewHost
 * @Package: com.imagepreview.plugin
 * @ClassName: HomeActivity
 * @Description: java类作用描述
 * @Author: 作者名
 * @CreateDate: 2025/2/8 14:43
 * @UpdateUser: 更新者：
 * @UpdateDate: 2025/2/8 14:43
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class HomeActivity  extends FlutterActivity {
    @Override
    public void configureFlutterEngine(FlutterEngine flutterEngine) {
        // 注册插件
        flutterEngine.getPlugins().add(new RouterPlugin());
        flutterEngine.getPlugins().add(new AdPlugin());
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d("HomeActivity", "onCreate.....");
    }
}